/*
 * Lol.cpp
 *
 *  Created on: 12 déc. 2013
 *      Author: Raphaël
 */

#include "View.h"

View::View(QWidget* xPtrParent) :
	QWidget(xPtrParent),
	m_formPtr(std::make_shared<Ui_Form>())
    {
    m_formPtr->setupUi(this);
    connect(m_formPtr->m_buttonCancel, SIGNAL(clicked(bool)), this, SIGNAL(signalCancel(bool)));
    connect(m_formPtr->m_buttonOk, SIGNAL(clicked(bool)), this, SIGNAL(signalOk(bool)));
    }

View::~View()
    {

    }

void View::setModel(QAbstractItemModel* xPtrModel)
    {
    m_formPtr->m_listView->setModel(xPtrModel);
    }
